package spil;
/*
 *  Klassen er et enkelt felt
 */
public class Felt {

	private String title, description;
	private int consequence;
	
	// Konstruktør der opretter et felt med data
	public Felt (String title, int consequence, String description){
		this.title = title;
		this.consequence = consequence;
		this.description = description;
	}
	
	// Konstruktør der opretter et tomt felt
	public Felt() {
	}
	
	// Print funktion der udskriver feltets data (titel, konsekvens) til consollen
	public void print() {
		System.out.println(title + "\t:\t" + consequence);
	}
	
	public void setTitleText(String title) {
		this.title = title;
	}
	
	public void setDescriptionText (String description) {
		this.description = description;
	}
	
	//Returnerer Feltets konsekvens som en int
	public int getConsequence(){
		return consequence;
	}
	
	public String getDescriptionText() {
		return description;
	}
}
